/*
 *    Copyright (c) 2018-2025, workdata All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: workdata
 */

package com.workcell.workdata.xthings.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.workcell.workdata.xthings.constant.ExtOutputAttributes;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 流量计二维码
 *
 * @author 廖博文
 * @date 2022-11-28 10:15:36
 */
@Data
@TableName("t_code_flowmeter")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "流量计二维码")
public class CodeFlowmeter extends Model<CodeFlowmeter> {

    private static final long serialVersionUID = 1L;

    /**
     * 二维码ID
     */
	@TableId
	@ApiModelProperty(value="二维码ID")
    private String codeId;

    /**
     * 流量计型号ID
     */
    @ApiModelProperty(value="流量计型号ID")
    private String fmId;

    /**
     * 厂家设备编号
     */
	@ExtOutputAttributes(key = "设备编号")
    @ApiModelProperty(value="厂家设备编号")
    private String deviceNo;

    /**
     * 短链码
     */
    @ApiModelProperty(value="短链码")
    private String chainNum;

    /**
     * 设备名称
     */
	@ExtOutputAttributes(key = "设备名称")
    @ApiModelProperty(value="设备名称")
    private String fmName;

    /**
     * 厂商名称
     */
	@ExtOutputAttributes(key = "厂商名称")
    @ApiModelProperty(value="厂商名称")
    private String manufacturer;

    /**
     * 产品类型
     */
	@ExtOutputAttributes(key = "产品类型")
    @ApiModelProperty(value="产品类型")
    private String dcProductType;

    /**
     * 型号
     */
	@ExtOutputAttributes(key = "型号")
    @ApiModelProperty(value="型号")
    private String dcModel;

    /**
     * 测量介质
     */
	@ExtOutputAttributes(key = "测量介质")
    @ApiModelProperty(value="测量介质")
    private String dcMeasuringMedium;

    /**
     * 本体材质
     */
	@ExtOutputAttributes(key = "本体材质")
    @ApiModelProperty(value="本体材质")
    private String dcBodyMaterial;

    /**
     * 电极材质
     */
	@ExtOutputAttributes(key = "电极材质")
    @ApiModelProperty(value="电极材质")
    private String dcElectrodeMaterial;

    /**
     * 介质温度
     */
	@ExtOutputAttributes(key = "介质温度")
    @ApiModelProperty(value="介质温度")
    private String dcMediumTemperature;

    /**
     * 电源参数
     */
	@ExtOutputAttributes(key = "电源参数")
    @ApiModelProperty(value="电源参数")
    private String dcPowerParam;

    /**
     * 衬里介质
     */
	@ExtOutputAttributes(key = "衬里介质")
    @ApiModelProperty(value="衬里介质")
    private String dcLiningMedium;

    /**
     * 创建人
     */
	@TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 创建时间
     */
	@ExtOutputAttributes(key = "二维码生成时间")
	@TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新人")
    private String updateBy;

    /**
     * 更新时间
     */
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;

}
